home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / FREENET / DEVOS / FDSOURCE.ARC / h / wimplib < prev   
Text File  |  1996-04-14  |  2KB  |  65 lines

  1. /* File:    wimplib.h
  2.  * Purpose: Define prototypes for general wimp support functions
  3.  */
  4.  
  5. #define ICMAXBUF 512
  6. #define wimp_select_icon(w,i,f) wimp_set_icon_state(w, i, (f)?wimp_ICON_SELECTED:NONE, wimp_ICON_SELECTED)
  7. #define wimp_shade_icon(w,i,f)  wimp_set_icon_state(w, i, (f)?wimp_ICON_SHADED:NONE, wimp_ICON_SHADED)
  8. #define wimp_undelete_icon(w,i) wimp_set_icon_state(w, i, NONE, wimp_ICON_DELETED)
  9. #define wimp_delete_icon(w,i)   wimp_set_icon_state(w, i, wimp_ICON_DELETED, wimp_ICON_DELETED)
  10.  
  11. #define open_PREVIOUS (wimp_open*)0
  12. #define open_POINTER  (wimp_open*)1
  13. #define open_CENTER   (wimp_open*)2
  14. #define openwindow_pre(w,i) openwindow(w,i,open_PREVIOUS)
  15. #define openwindow_ptr(w,i) openwindow(w,i,open_POINTER)
  16. #define openwindow_ctr(w,i) openwindow(w,i,open_CENTER)
  17.  
  18. /* Auto */
  19.  
  20. extern void screen_vars(void)
  21. ;
  22. extern wimp_w loadtemplate(char const *name)
  23. /* Loads and creates the named window from the Template file.
  24.  * Workspace is claimed dynamicaly, released in dispose_indir()
  25.  * Returns window handle.
  26.  */
  27. ;
  28. extern void dispose_indir(void)
  29. /* This function should be called when all indircted window data can be
  30.  * removed, probably in an atexit() handler. Note that this function can be
  31.  * passed to atexit().
  32.  */
  33. ;
  34. extern bool win_isopen(wimp_w handle)
  35. ;
  36. extern void openwindow(wimp_w handle, wimp_i ic, wimp_open *pos)
  37. /* open window 'handle' on position as indictaed by 'pos':
  38.  * open_PREVIOUS  On previous position
  39.  * open_POINTER   Centered under pointer
  40.  * open_CENTER    Centered on screen
  41.  * if ic!=-1, set the caret in the given icon
  42.  */
  43. ;
  44. extern void openpaned(wimp_w handle, wimp_w pane, wimp_i ic, wimp_open *win_pos)
  45. ;
  46. extern char *mkstr(char *s)
  47. ;
  48. extern char *geticontext(wimp_w window, wimp_i icon)
  49. ;
  50. extern const char *seticontext(wimp_w window, wimp_i icon, const char *s)
  51. /* Update icontext and return ptr to the icon's text for reference only!
  52.  */
  53. ;
  54. extern int iprintf(wimp_w w, wimp_i i, char *s, ...)
  55. /*
  56.  * Icon filling printf() routine.
  57.  */
  58. ;
  59. extern wimp_menu *popup(wimp_w w, wimp_i i, wimp_menu *menu)
  60. ;
  61. extern void settitle(wimp_w w, const char *s)
  62. ;
  63. extern bool icon_selected(wimp_w w, wimp_i i)
  64. ;
  65.